<?php
namespace app\index\controller;
use think\Db;
use think\Controller;
class Index extends Controller
{
    public function index()
    {
		$DB = new Db;
       	$user = $DB::table('Class')->page('1,20')->select();	  
		$arr = array();
		foreach($user as $key=>$value){
			foreach($user[$key] as $k=>$v){
				if(!empty($user[$key][$k])){
					$user[$key][$k] = mb_convert_encoding($user[$key][$k],'UTF-8','GBK');
				}
			}
			
		}
		//var_dump($user);
		$list = 123;
		$this->assign('user',$user);
		$this->assign('list',$list);
		return view('index');
    }
	public function log(){
		$list = '哈哈哈';
		$this->assign('list',$list);
		return view();
	}
}

